<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="/WEB-INF/taglib/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/taglib/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglib/struts-logic.tld" prefix="logic"%>

<div id="content">
	<h3>
		<bean:write name="taskForm" property="studentTask.task.taskTitle" />
	</h3>
	<table class="custom_table" style="width: 500px; max-width: 500px;">
		<tr>
			<td><bean:message
					key="student.task_appointed_view.messages.task_description" /> :</td>
			<td><bean:write name="taskForm"
					property="studentTask.task.taskDescription" />
			</td>
		</tr>
		<tr>
			<td><bean:message key="common.messages.date" /> :</td>
			<td><bean:write name="taskForm"
					property="studentTask.task.creationDate" />
			</td>
		</tr>
		<tr>
			<td><bean:message
					key="student.task_appointed_view.messages.max_upload" /> :</td>
			<td><bean:write name="taskForm"
					property="studentTask.numberUpload" />/ <bean:write
					name="taskForm" property="studentTask.task.maxUpload" />
			</td>
		</tr>
		<tr>
			<td><bean:message
					key="student.task_appointed_view.messages.mark_policy" /> :</td>
			<td><bean:write name="taskForm"
					property="studentTask.task.markPolicy.policyShort" />
			</td>
		</tr>
	</table>

	<html:form action="/student/taskSolution" method="post"
		enctype="multipart/form-data">
		<table class="custom_table">
			<tr>
				<td><html:link action="/message.do?method=question"
						paramId="taskId" paramName="taskForm"
						paramProperty="studentTask.task.taskId">
						<bean:message key="student.task_list.links.question" />
					</html:link>
				</td>
				<td></td>
			</tr>
			<tr>
				<td><bean:message
						key="student.task_appointed_view.messages.solution" /> :<br />
					<div style="color: red; font-size: 11px;">
						<html:errors property="solutionFileNotExist" />
						<br />
					</div>
					<div style="color: red; font-size: 11px;">
						<html:errors property="solutionFileSiseGreat" />
						<br />
					</div>
					<div style="color: red; font-size: 11px;">
						<html:errors property="solutionFileMaxUpload" />
						<br />
					</div></td>
				<td><html:file name="taskForm" property="solutionFile" /></td>
			</tr>
			<tr>
				<td></td>
				<td><html:submit property="method" value="solution" /></td>
			</tr>
		</table>
	</html:form>


</div>